home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Borland JBuilder 6
/
jbuilder6.iso
/
Documents
/
JAVA Programming
/
examples
/
07
/
PointCreate.java
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Java Source
|
2000-09-08
|
232 b
|
12 lines
class Point { int x, y;
Point(int x, int y) {
this.x = x;
this.y = y;
} }
class PointCreate {
public static void main(String args[]) {
Point p = new Point(10,20);
System.out.println("x = " + p.x + " y = " + p.y);
} }